package com.lzq.chatroom_project.dao;

import com.lzq.chatroom_project.model.Message;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface MessageMapper {
    List<Message> getMessageListBySessionId(Integer sessionId,Integer userId);

    void add(Message message);

    List<Message> findBySessionIdAndDate(Integer sessionId, LocalDate date);

    List<Message> searchMessages(Integer sessionId, String keyword);
}
